package com.sannuo.common.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("scc_patient")
public class Patient implements Serializable {

    private static final long serialVersionUID = 8801099284175924374L;

    private Integer patientId;           //int 检查者id
    private String patientCode;         //varchar 检测者编号(No00012)
    private Integer userId;             //int 用户id
    private String customerCode;        //varchar 客户编号(ENF0034952)
    private String name;                 //varchar 姓名
    private String phone;                //varchar 联系电话
    private Integer sex;                  //tinyint 性别
    private Integer age;                  //smallint 年龄
    private String idCard;              //varchar 身份证号
    private Double weight;               //double 体重
    private Double height;               //double 身高

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;          //datetime 创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;          //datetime 修改时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastTestTime;       //datetime 最后检测时间

    private Integer countOfTest;        //int 检测次数(默认0)
    private Integer status;               //tinyint 状态(0禁用1正常，默认1)
}
